package mc.support.util;

/**
 * Created with IntelliJ IDEA. <br/>
 * Author: Francis Yun    <br/>
 * Date: 2014-08-05  <br/>
 */
public abstract class PrintSupport {

    public static void print(char sep, char end, Object...oo) {
        StringBuilder s = new StringBuilder();
        int c = 0;
        for ( Object o : oo ) {
            s.append( o.toString() );
            if ( ++c != oo.length ) s.append( sep );
        }
        s.append( end );
        System.out.print( s.toString() );
    }

    public static void print(Object...oo) {
        print( ' ', ' ', oo );
    }

    public static void printE(Object...oo) {
        print( ' ', '\n', oo );
    }

    public static void println(Object...oo) {
        print( '\n', '\n', oo );
    }

    public static void println() {
        print('\n');
    }

}
